using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._GeodatabaseAdministration
{
    /// <summary>
    /// <para>Create Raster Type</para>
    /// <para>Create Raster Type</para>
    /// <para>创建栅格类型</para>
    /// </summary>    
    [DisplayName("Create Raster Type")]
    public class CreateRasterType : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CreateRasterType()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_input_database">
        /// <para>Input Database Connection</para>
        /// <para>Specify the database connection (.sde) file for the geodatabase in which you want to install the ST_Raster data type. You must connect as the geodatabase administrator.</para>
        /// <para>为要安装 ST_Raster 数据类型的地理数据库指定数据库连接 （.sde） 文件。您必须以地理数据库管理员身份进行连接。</para>
        /// </param>
        public CreateRasterType(object _input_database)
        {
            this._input_database = _input_database;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Create Raster Type";

        public override string CallName => "management.CreateRasterType";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_input_database, _out_workspace];

        /// <summary>
        /// <para>Input Database Connection</para>
        /// <para>Specify the database connection (.sde) file for the geodatabase in which you want to install the ST_Raster data type. You must connect as the geodatabase administrator.</para>
        /// <para>为要安装 ST_Raster 数据类型的地理数据库指定数据库连接 （.sde） 文件。您必须以地理数据库管理员身份进行连接。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Database Connection")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _input_database { get; set; }


        /// <summary>
        /// <para>Updated Input Workspace</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Workspace")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_workspace { get; set; }


        public CreateRasterType SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}